
CC = gcc
CFLAGS = -g -Wall
#CFLAGS += `pkg-config --cflags glib-2.0`
OBJECTS = lambda.o types.o parse.o lexer.o axioms.o
INCFLAGS = 
LDFLAGS = -Wl,-rpath,/usr/local/lib
LIBS =
#LIBS += `pkg-config --libs glib-2.0` 

all: lambda

lambda: $(OBJECTS)
	$(CC) -o lambda $(OBJECTS) $(LDFLAGS) $(LIBS)

.SUFFIXES:
.SUFFIXES:	.c .cc .C .cpp .o

.c.o :
	$(CC) -o $@ -c $(CFLAGS) $< $(INCFLAGS)

count:
	wc *.c *.cc *.C *.cpp *.h *.hpp

clean:
	rm -f *.o
	rm -f lambda

.PHONY: all
.PHONY: count
.PHONY: clean
